from google.appengine.ext import db

from Activity import *
from Location import *

class CheckIn(db.Model):
    userId = db.IntegerProperty()
    activity = db.ReferenceProperty(Activity)
    location = db.ReferenceProperty(Location)
    date = db.DateTimeProperty()

    def save(self):
        self.put()
        self.id = self.key().id

